﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="bba.framework.infraweb.masterpage.Pages.Search" MasterPageFile="~/MasterPage/infraWeb.Master" Theme="InfraWebTheme" %>
<asp:Content ID="PlaceHolderMain" runat="server" contentplaceholderid="PlaceHolderMain">
 <script type="text/javascript">
        //Variaveis pra manter estado no post.
        //Carrega as funcoes do jQuery no load
        $(document).ready(function() {
        eventosBusca();

        });
</script>    
<link type="text/css" rel="Stylesheet" href="<%= ResolveUrl("~/App_Themes/InfraWebTheme/Search.css")%>" />    
    <div class="searchCorpo">   
        <br />
        <br />
        <div class="thumbnail">
             
        </div>     
        <div id="searchRepeater" class="searchRepeater">
        <img id="resultThumbnail" class="resultThumbnail" />
            <asp:Repeater ID="resultRepeater" runat="server">
                <ItemTemplate>
                    <div id='<%# Eval("Title")%>' class="eachResult">
                        <asp:HyperLink runat="server" CssClass="searchPageName" ID="pageName" NavigateUrl='<%# Eval("Path")%>'
                            Text='<%# Eval("Title")%>' Target=_parent></asp:HyperLink><br />
                        <asp:Label runat="server" CssClass="searchContent" ID="resultPageContent" Text='<%# Eval("Title")%>'></asp:Label><br />
                        <asp:Label runat="server" CssClass="searchPageLink" ID="searchPageLink" Text='<%# Eval("Path")%>'></asp:Label><br />
                        <br />
                    </div>
                </ItemTemplate>
            </asp:Repeater>
      <div class="searchHeader" align="left">
                            <asp:label id="noResult" class="resultHeader" runat="server" Visible="False">Não foi encontrado nenhum registro para esta pesquisa.</asp:Label>
                            <asp:label id="infoResult" class="resultHeader" runat="server">Resultados da pesquisa -</asp:Label>
                            <asp:ImageButton ID="setaStartEsq" runat="server" Height="16px" 
                                ImageUrl="~/App_Themes/InfraWebTheme/images/firstResult.png" 
                                onclick="setaStartEsq_Click" Width="19px" 
                                ToolTip="Ir para primeira página" />
                            <asp:ImageButton ID="setaPagEsq" runat="server" Height="16px" 
                                ImageUrl="~/App_Themes/InfraWebTheme/images/modulo_seta_esq.png" 
                                onclick="setaPagEsq_Click" Width="19px" ToolTip="Anterior" 
                                />
                            <asp:label id="currentResultLabel" class="resultHeader" runat="server">.</asp:Label>
&nbsp;<asp:label id="infoDeResult" class="resultHeader" runat="server">de</asp:Label>
                            &nbsp;<asp:label id="endResultLabel" class="searchHeader" runat="server">.</asp:Label>
                            <asp:ImageButton ID="setaPagDir" runat="server" Height="16px" ImageUrl="~/App_Themes/InfraWebTheme/images/modulo_seta_dir.png" 
                            onclick="setaPagDir_Click" Width="22px" ToolTip="Próxima" />
                            <asp:ImageButton ID="setaEndDir" runat="server" Height="16px" ImageUrl="~/App_Themes/InfraWebTheme/images/lastResult.png" 
                            onclick="setaEndEsq_Click" Width="22px" ToolTip="Ir para ultima página." />
                             <img class="providerInstaller" src="../App_Themes/InfraWebTheme/images/searchProviderIcon.png" onclick="window.external.AddSearchProvider('<%= ResolveUrl("~/customSearch.xml") %>')" alt="Instalar pesquisa do Internet Explorer"/>
        </div>
        </div>
    </div>
</asp:Content>